/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
/**
 * Tabla de regiones. Almacena todas las regiones del país.
 */
public class Tbv_region implements Serializable {
	public Tbv_region() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_TBV_REGION_TBV_PROVINCIA) {
			return ORM_tbv_provincia;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int re_id_region;
	
	private String re_region;
	
	private String re_numero;
	
	private java.util.Set ORM_tbv_provincia = new java.util.HashSet();
	
	private void setRe_id_region(int value) {
		this.re_id_region = value;
	}
	
	public int getRe_id_region() {
		return re_id_region;
	}
	
	public int getORMID() {
		return getRe_id_region();
	}
	
	/**
	 * Nombre de región.
	 */
	public void setRe_region(String value) {
		this.re_region = value;
	}
	
	/**
	 * Nombre de región.
	 */
	public String getRe_region() {
		return re_region;
	}
	
	/**
	 * Número de región.
	 */
	public void setRe_numero(String value) {
		this.re_numero = value;
	}
	
	/**
	 * Número de región.
	 */
	public String getRe_numero() {
		return re_numero;
	}
	
	private void setORM_Tbv_provincia(java.util.Set value) {
		this.ORM_tbv_provincia = value;
	}
	
	private java.util.Set getORM_Tbv_provincia() {
		return ORM_tbv_provincia;
	}
	
	public final orm.Tbv_provinciaSetCollection tbv_provincia = new orm.Tbv_provinciaSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TBV_REGION_TBV_PROVINCIA, orm.ORMConstants.KEY_TBV_PROVINCIA_TBV_REGIONRE_ID_REGION, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getRe_id_region());
	}
	
}
